<?php
/*
 * USDP UserManage Classes. 
 *  
 */

class UserLoginEvt extends BaseEvt {
	function __construct($portalAccount, $portalPwd, $portalType, $phone, $pwd)
	{
		parent::__construct($portalAccount, $portalPwd, $portalType);
				
		$this->phoneNumber = $phone;
		$this->pwd 	= $pwd;		
	}
	/*
	User account for login
	A string of 1 to 20 digits
	It cannot be null.
	*/
	public $phoneNumber;

	/*
	User password
	A string of 1 to 20 digits
	It cannot be null.
	*/
	public $pwd;
}


class GetValidateCodeEvt extends BaseUpdateEvt {
	/*	
	MSISDN of a subscriber
	A string of 1 to 20 digits
	It cannot be null.
	*/		
	public $phoneNumber;	
}

class SubscribeEvt extends BaseUpdateEvt {
	/*
	MSISDN of a subscriber
	A string of 1 to 20 digits
	It cannot be null.
	*/
	public $phoneNumber;

	/*
	The password a subscriber gets when he registers RBT
	A string of 1 to 20 digits
	It can be null.
	NOTE
	When the subscriber enters a password, the system takes the password as the one used for RBT registration;
	otherwise, the system automatically generates a password and informs the subscriber by SM. 
	The PSTN subscribers can enter password to register the RBT service. If the subscriber is an IN subscriber, the subscriber is authenticated in the IN.
	*/
	public $pwd;
	
	/*
	Validate code for registration
	A string of 1 to 20 digits
	It can be null.
	NOTE
	For Portals that do not need password authentication, this field is unnecessary.
	For Portals that need password authentication and areas whose user password are stored in the RBT management console, this field is necessary.
	For the subscriber who subscribes to the service in the fixed intelligent network, they do not need to enter the parameter because authentication is not performed in the USDP.
	*/
	public $validateCode;
}

class GetPwdEvt extends BaseEvt {
	/*
	The phone number of a subscriber
	A string of 1 to 20 digits
	It cannot be null.
	*/
	public $phoneNumber;		
}

class EditUserEvt extends BaseUpdateEvt{

	function __construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode, $phoneNumber)
	{

		parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);
		
		$this->phoneNumber = $phoneNumber;
	}
	
	/*
	MSISDN of a subscriber
	A string of 1 to 20 digits
	It cannot be null.
	*/
	public $phoneNumber;
	
	/*
	Subscriber name
	A string of 1 to 40 digits
	It can be null.
	*/
	public $name;
	
	/*
	Subscriber ID
	A string of 1 to 40 digits
	It can be null.
	*/
	public $idCard;
		
	/*
	E-mail address of a subscriber
	A string of 1 to 40 digits
	It can be null.
	*/
	public $email;
		
	/*
	Indicates whether a subscriber allows others to copy his RBTs 
	A string of 1 digit
	It can be null.
	See the following codes: 
	0: no
	1: yes
	*/
	public $isUseCopy;
		
	/*
	Old password
	A string of 1 to 20 digits
	It can be null.
	*/
	public $oldPwd;
		
	/*
	New password
	A string of 1 to 20 digits
	It can be null.
	NOTE
	The new password must appear with the old password. If newPwd is not null, oldPwd cannot be null.
	*/
	public $newPwd;
		
	/*
	Indicates whether to play RBTs with background music.
	A string of 1 digit
	It can be null.
	See the following codes for types:
	0: no
	1: yes
	*/
	public $bgTone;
		
	/*
	Subscriber type
	A string of 1 digit
	It can be null.
	See the following codes for types:
	0: postpaid subscriber
	1: prepaid subscriber
	*/
	public $userType;
		
	/*
	Service brand type
	A string of 1 to 6 digits
	It can be null.
	When the value is set to -1, the brand type does not exist.
	*/
	public $subCosID;	
}

?>


